<!--
 * @Author: humengchuan 531537052@qq.com
 * @Date: 2024-12-09 14:20:35
 * @LastEditors: humengchuan 531537052@qq.com
 * @LastEditTime: 2024-12-09 14:22:49
 * @FilePath: \project-my\nuxt3-app-pro\error.vue
 * @Description: 错误页
-->
<script setup lang="ts">
import type { NuxtError } from '#app'

const props = defineProps({
    error: Object as () => NuxtError
})
</script>

<template>
    <div>
        <h1>{{ error!.statusCode }} --- {{ `${'未找到页面'}` }}</h1>
        <NuxtLink to="/home">返回首页</NuxtLink>
    </div>
</template>